home *** CD-ROM | disk | FTP | other *** search
- Short: Playing card images & code (SAS,Aztec)
- Author: Todd_Lewis@unc.edu
- Uploader: Todd_Lewis@unc.edu
- Type: dev/c
-
- Todd M. Lewis Todd_Lewis@unc.edu
- 2601 Piedmont Drive (919) 776-7386
- Sanford, NC 27330-9437
- USA
-
- The "card package" contains C source code for incorporating playing
- card images into Intuition programs. Two complete sets of card
- images are provided. One set has horizontal cards, the other has
- vertical cards. Though they are small (they were designed so that
- 52 cards could be shown at the same time on a Workbench screen),
- attention to detail has not been spared. All the face cards are
- unique. The Jack of Spades, the Jack of Hearts, and the King of
- Diamonds are all "one-eyed" like they are supposed to be. A joker
- image is included, as well as the images of the back of a card, a
- blank card, and black card image.
-
- The programming interface is straight-forward. No initialization
- is necessary (except for opening the intuition.library and the
- graphics.library). A blind type is defined (CardID_t) for
- representing cards. Four suits are defined for "normal" cards
- (SUIT_SPADES, SUIT_HEARTS, SUIT_CLUBS, and SUIT_DIAMONDS) plus an
- additional suit for the special images (SUIT_SPECIAL). Functions
- are provided for translating a (suit,rank) pair to a CardID
- (CardID()) and back (CardSuit() and CardRank()). These functions
- provide error checking for invalid CardIDs and impossible
- (suit,rank) combinations. Functions are provided to initialize
- (CardRange()) and shuffle (Shuffle()) an array of CardIDs. Cards
- are displayed by calling either ShowVCard() or ShowHCard().
- Defined constants give the width and height of both the horizontal
- and vertical card images.
-
-
- ============================= Archive contents =============================
-
- Original Packed Ratio Date Time Name
- -------- ------- ----- --------- -------- -------------
- 420 254 39.5% 22-Sep-94 00:35:34 CardPkg.info
- 4752 2045 56.9% 25-Sep-94 20:37:56 CardPkg/Card_doc_brush
- 172 130 24.4% 25-Sep-94 20:37:58 CardPkg/Card_doc_brush.info
- 14460 7121 50.7% 25-Sep-94 20:37:58 CardPkg/CardHBrush
- 86798 9515 89.0% 25-Sep-94 20:39:30 CardPkg/CardHBrush.c
- 172 132 23.2% 25-Sep-94 20:37:58 CardPkg/CardHBrush.info
- 4674 1777 61.9% 26-Sep-94 00:12:38 CardPkg/CardHImages.c
- 1533 673 56.0% 25-Sep-94 20:37:58 CardPkg/CardHImages.h
- 2682 802 70.0% 25-Sep-94 23:12:42 CardPkg/Cards.c
- 14870 4357 70.6% 26-Sep-94 00:37:52 CardPkg/Cards.doc
- 468 226 51.7% 25-Sep-94 20:37:56 CardPkg/Cards.doc.info
- 1393 479 65.6% 25-Sep-94 23:55:24 CardPkg/Cards.h
- 17498 9505 45.6% 25-Sep-94 20:37:58 CardPkg/CardVBrush
- 88736 12052 86.4% 25-Sep-94 20:38:36 CardPkg/CardVBrush.c
- 172 133 22.6% 25-Sep-94 20:37:58 CardPkg/CardVBrush.info
- 4199 1700 59.5% 26-Sep-94 00:12:58 CardPkg/CardVImages.c
- 1519 662 56.4% 25-Sep-94 20:37:58 CardPkg/CardVImages.h
- 28736 9377 67.3% 26-Sep-94 00:34:18 CardPkg/Hello_H
- 4592 1652 64.0% 26-Sep-94 00:31:32 CardPkg/Hello_H.c
- 618 437 29.2% 25-Sep-94 20:37:56 CardPkg/Hello_H.info
- 29252 11213 61.6% 26-Sep-94 00:36:14 CardPkg/Hello_V
- 4556 1647 63.8% 26-Sep-94 00:36:02 CardPkg/Hello_V.c
- 898 686 23.6% 25-Sep-94 20:37:58 CardPkg/Hello_V.info
- 456 220 51.7% 25-Sep-94 20:37:56 CardPkg/includes.c
- 2082 755 63.7% 26-Sep-94 00:26:30 CardPkg/makefile
- 1455 475 67.3% 25-Sep-94 21:12:44 CardPkg/SMakefile
- 6128 3955 35.4% 25-Sep-94 20:38:00 CardPkg/trimline
- 769 362 52.9% 25-Sep-94 20:37:58 CardPkg/trimline.c
- -------- ------- ----- --------- --------
- 324060 82342 74.5% 27-Sep-94 11:32:10 28 files
-